package com.ocom.exposeapi.feign;

import com.ocom.common.constant.MqSimpleApiUrl;
import com.ocom.common.request.simple.GzhMsgRequest;
import com.ocom.common.request.simple.SmsRequest;
import com.ocom.common.resp.Result;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

import java.util.Map;

@FeignClient(value = "mq-simple")
public interface MqSimple {

    // 初始化账号(addXFAccount)
    @PostMapping(MqSimpleApiUrl.URL_AddXFAccount)
    public Result AddXFAccount(@RequestBody Map<String,Object> map);

    @PostMapping(MqSimpleApiUrl.URL_FySms)
    Result FySms(@RequestBody SmsRequest request);


    @PostMapping(MqSimpleApiUrl.URL_gzhMsg)
    public Result gzhMsg(@RequestBody GzhMsgRequest request) ;
}
